<template>
  <div class="container">
    <!-- <div class="box">
      <header class="header">玫瑰</header>
      <main class="main">受赠</main>
    </div> -->
   <router-view></router-view>
    <footer class="footer">
      <van-tabbar v-model="active" route>
  <van-tabbar-item to="/" icon="home-o">首页</van-tabbar-item>
  <van-tabbar-item to="/kind"  icon="apps-o">分类</van-tabbar-item>
  <van-tabbar-item to="/cart"  icon="shopping-cart-o">购物车</van-tabbar-item>
  <van-tabbar-item to="/my"  icon="manager-o">我的</van-tabbar-item>
</van-tabbar>
    </footer>
  </div>
  
</template>
<script setup>
import { ref } from 'vue';
const active = ref(0);
</script>
<style lang="scss">
*{
  padding: 0;
  margin: 0;
  list-style: none;
}
html,body,#app,.container{
  width: 100%;
  height: 100%;
}
.container{
  display: flex;
  flex-direction: column;
  .box{
    overflow: auto;
    flex: 1;
    .header{
      height: 3.75rem;
    }
    .main{
      overflow: auto;
      flex: 1;
    }
  }
  .footer{
    height: 60px;
  }
}
</style>
